﻿using RabbitMQ.Client;

namespace ConsoleApp.Infrastructure.Rmq
{
    public class RmqConnect
    {
        private IConnection _connect;

        public RmqConnect(IConnection connect)
        {
            _connect = connect;
        }

        public IModel GetChannel()
        {
            return _connect.CreateModel();
        }

        public IConnection GetRealConnectInfo()
        {
            return _connect;
        }
    }
}
